package cn.itcast.service;

import cn.itcast.daomain.comment;
import cn.itcast.daomain.commodity;
import cn.itcast.daomain.purchase;
import cn.itcast.daomain.user;

import java.util.List;

public interface UserService {
    List<commodity> finAll();


    boolean addUser(user user);

    boolean active(String code);

    user login(String username, String password);




    commodity detail(String id);




    int addSop(String foodList, String user, String len, String shou);

    List<commodity> spList(String spName);

    int updateUser(String username,String password, String pptPic);

    user chaxunl(String username);

    List<purchase> selecPur(String userid);

    List<comment> comment(String commentId);

    int updateshou(String id, String phone);

    int updatecomment(String tup, String text, String comment, String userid,String purid,String xin);


    int updateUsexiugair(String username, String pptPic);
}
